//public class Main {
//    public static void main(String[] args) {
//        long TotalMilliseconds=System.currentTimeMillis();
//        System.out.println("The time is "+TotalMilliseconds);
//        long Totalseconds = TotalMilliseconds/1000;
//        long CurrentSeconds = TotalMilliseconds%60;
//        long TotalMinutes = TotalMilliseconds/60;
//        long CurrentMinutes = TotalMinutes%60;
//        long TotalHours = TotalMinutes/60;
//        long CurrentHours = TotalHours%24;
//        System.out.println("Totalseconds is "+Totalseconds);
//        System.out.println("TotalMinutes is "+TotalMinutes);
//        System.out.println("TotalHours is "+TotalHours);
//        System.out.println("Now is "+CurrentHours+":"+CurrentMinutes+":"+CurrentSeconds);
//    }
//}
//guess the number
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        int ran = (int)(Math.random()*100);
        System.out.println("Please input the number you guess");
        Scanner input = new Scanner(System.in);
        int answer = -1;
        while (answer!=ran) {
            answer = input.nextInt();
            if (answer > ran) {
                System.out.println("猜大了");
            } else if (answer < ran) {
                System.out.println("猜小了");
            } else
            {
                System.out.println("恭喜你猜对了");
            }
        }
    }
}